home *** CD-ROM | disk | FTP | other *** search
/ Kit PC World De Ampliacion De Windows 95 / Kit PC World de ampliacion de Windows 95.iso / clarion / cw15 / tpw15.z / WIZARD.TPL < prev    next >
Text File  |  1995-09-05  |  19KB  |  550 lines

  1. #TEMPLATE(Wizards,'Clarion for Windows 1.5 Wizard Templates')
  2. #HELP('CW15HELP.HLP')
  3. #GROUP(%DeclareSymbols)
  4. #DECLARE(%GenerationReporting)
  5. #SET(%GenerationReporting,%False)
  6. #DECLARE(%ReplaceExistingProcedures)
  7. #DECLARE(%TXAFile)
  8. #DECLARE(%Comments)
  9. #DECLARE(%CurrentProcedure)
  10. #DECLARE(%CurrentTab)
  11. #DECLARE(%InitializeTab)
  12. #!
  13. #DECLARE(%WindowWidth)
  14. #DECLARE(%WindowHeight)
  15. #DECLARE(%WindowButtonRows)
  16. #DECLARE(%WindowButtonColumns)
  17. #!
  18. #DECLARE(%WorksheetWidth)
  19. #DECLARE(%WorksheetHeight)
  20. #DECLARE(%WorksheetButtonRows)
  21. #DECLARE(%WorksheetButtonColumns)
  22. #!
  23. #DECLARE(%MaximumTopOffset)
  24. #DECLARE(%CurrentX)
  25. #DECLARE(%CurrentY)
  26. #DECLARE(%CurrentLineLength)
  27. #DECLARE(%ValueConstruct)
  28. #DECLARE(%HoldConstruct)
  29. #DECLARE(%TestHeight)
  30. #DECLARE(%TestWidth)
  31. #DECLARE(%TestControlType)
  32. #DECLARE(%PictureType)
  33. #DECLARE(%RelationRows)
  34. #DECLARE(%RelationCols)
  35. #DECLARE(%TabLineCount)
  36. #DECLARE(%CheckIndentWidth)
  37. #DECLARE(%CurrentTabLength)
  38. #DECLARE(%CurrentTabLineLength)
  39. #DECLARE(%ControlPlacementTries)
  40. #DECLARE(%VerticalSpaceNextControl)
  41. #DECLARE(%GenerateProgramSection)
  42. #DECLARE(%ProcCount)
  43. #DECLARE(%ContCounter)
  44. #!
  45. #DECLARE(%RelationList),MULTI
  46. #DECLARE(%BrowseFiles),UNIQUE
  47. #DECLARE(%ChildBrowseFiles),UNIQUE
  48. #DECLARE(%SelectFiles),UNIQUE
  49. #DECLARE(%UpdateFiles),UNIQUE
  50. #!
  51. #DECLARE(%ProcedureList),MULTI
  52. #DECLARE(%QuickProcedureType,%ProcedureList)
  53. #DECLARE(%QuickProcedurePrimary,%ProcedureList)
  54. #DECLARE(%QuickProcedurePrimaryKey,%ProcedureList)
  55. #DECLARE(%QuickProcedureDescription,%ProcedureList)
  56. #DECLARE(%QuickProcedureDefault,%ProcedureList)
  57. #DECLARE(%QuickProcedureWindow,%ProcedureList)
  58. #DECLARE(%QuickProcedureReport,%ProcedureList)
  59. #!
  60. #DECLARE(%QuickOtherFiles,%ProcedureList),UNIQUE
  61. #!
  62. #DECLARE(%WindowLayerID,LONG),UNIQUE
  63. #DECLARE(%WindowLayerTabText,%WindowLayerID)
  64. #DECLARE(%WindowLayerTabREQ,%WindowLayerID)
  65. #DECLARE(%WindowLayerTopOffset,%WindowLayerID)
  66. #DECLARE(%WindowLayerBottomOffset,%WindowLayerID)
  67. #DECLARE(%WindowLayerSpecialCase,%WindowLayerID)
  68. #DECLARE(%WindowLayerCheckIndentLevel,%WindowLayerID)
  69. #DECLARE(%WindowLayerClosed,%WindowLayerID)
  70. #!
  71. #DECLARE(%WindowControlID,%WindowLayerID,LONG),MULTI
  72. #DECLARE(%WindowControl,%WindowControlID)
  73. #DECLARE(%WindowControlXOffset,%WindowControlID)
  74. #DECLARE(%WindowControlYOffset,%WindowControlID)
  75. #DECLARE(%WindowControlWidth,%WindowControlID)
  76. #DECLARE(%WindowControlHeight,%WindowControlID)
  77. #DECLARE(%WindowControlStatement,%WindowControlID)
  78. #!
  79. #DECLARE(%ProcedureDataItemID,LONG),MULTI
  80. #DECLARE(%ProcedureDataItem,%ProcedureDataItemID)
  81. #DECLARE(%ProceduredataItemType,%ProcedureDataItemID)
  82. #!
  83. #DECLARE(%QuickTemplateInstance,LONG),MULTI
  84. #DECLARE(%QuickTemplateType,%QuickTemplateInstance)
  85. #DECLARE(%QuickTemplateParent,%QuickTemplateInstance)
  86. #DECLARE(%QuickTemplatePrimary,%QuickTemplateInstance)
  87. #DECLARE(%QuickTemplatePrimaryKey,%QuickTemplateInstance)
  88. #DECLARE(%QuickTemplateProcProp,%QuickTemplateInstance)
  89. #DECLARE(%QuickTemplateControl,%QuickTemplateInstance),MULTI
  90. #DECLARE(%QuickTemplateSecondaryFiles,%QuickTemplateInstance),UNIQUE
  91. #!
  92. #DECLARE(%FileList),MULTI
  93. #DECLARE(%FileListPromptWidth,%FileList)
  94. #DECLARE(%FileListControlsWidth,%FileList)
  95. #DECLARE(%FileListDescription,%FileList)
  96. #DECLARE(%FileListTab,%FileList),MULTI
  97. #DECLARE(%FileListTabHasPrompts,%FileListTab)
  98. #!
  99. #DECLARE(%FieldListID,%FileList,LONG),UNIQUE
  100. #DECLARE(%FieldList,%FieldListID)
  101. #DECLARE(%FieldListType,%FieldListID)
  102. #DECLARE(%FieldListJustification,%FieldListID)
  103. #DECLARE(%FieldListLookup,%FieldListID)
  104. #DECLARE(%FieldListLookupKey,%FieldListID)
  105. #DECLARE(%FieldListLookupField,%FieldListID)
  106. #DECLARE(%FieldListVerticalSpace,%FieldListID)
  107. #DECLARE(%FieldListControl,%FieldListID),MULTI
  108. #DECLARE(%FieldListControlType,%FieldListControl)
  109. #DECLARE(%FieldListControlXOffset,%FieldListControl)
  110. #DECLARE(%FieldListControlYOffset,%FieldListControl)
  111. #DECLARE(%FieldListControlWidth,%FieldListControl)
  112. #DECLARE(%FieldListControlHeight,%FieldListControl)
  113. #DECLARE(%FieldListControlOrig,%FieldListControl)
  114. #DECLARE(%FieldListControlLink,%FieldListControl)
  115. #DECLARE(%FieldListCheckColumn,%FieldListID)
  116. #DECLARE(%FieldListLinkList,%FieldListID),MULTI
  117. #DECLARE(%FieldListTab,%FieldListID)
  118. #DECLARE(%FieldListHeader,%FieldListID)
  119. #DECLARE(%FieldListPicture,%FieldListID)
  120. #DECLARE(%FieldListPromptWidth,%FieldListID)
  121. #DECLARE(%FieldListBrowseWidth,%FieldListID)
  122. #DECLARE(%FieldListTotalWidth,%FieldListID)
  123. #DECLARE(%FieldListTotalHeight,%FieldListID)
  124. #DECLARE(%FieldListRequiresEnd,%FieldListID)
  125. #DECLARE(%FieldListReportControl,%FieldListID),MULTI
  126. #DECLARE(%FieldListReportControlType,%FieldListReportControl)
  127. #DECLARE(%FieldListReportControlXOffset,%FieldListReportControl)
  128. #DECLARE(%FieldListReportControlYOffset,%FieldListReportControl)
  129. #DECLARE(%FieldListReportControlWidth,%FieldListReportControl)
  130. #DECLARE(%FieldListReportControlHeight,%FieldListReportControl)
  131. #!
  132. #DECLARE(%KeyListID,%FileList,LONG),UNIQUE
  133. #DECLARE(%KeyList,%KeyListID)
  134. #DECLARE(%KeyListTab,%KeyListID)
  135. #DECLARE(%KeyListNoPopulate,%KeyListID)
  136. #DECLARE(%KeyListDescription,%KeyListID)
  137. #DECLARE(%KeyListField,%KeyListID),MULTI
  138. #!
  139. #INSERT(%QuickBrowseDeclarations)
  140. #INSERT(%QuickFormDeclarations)
  141. #INSERT(%QuickAppDeclarations)
  142. #INSERT(%QuickDeclareAdditions)
  143. #INSERT(%QuickDeclareFields)
  144. #INSERT(%QuickDeclareProcedure)
  145. #INSERT(%QuickDeclareDefaults)
  146. #!--------------------------------------------------------------------------
  147. #GROUP(%QuickDeclareDefaults)
  148. #DECLARE(%HighestUserLevel)
  149. #DECLARE(%Menubar)
  150. #DECLARE(%LayerWindow)
  151. #DECLARE(%LayerPreSheet)
  152. #DECLARE(%LayerPostSheet)
  153. #DECLARE(%LayerFirstChildBrowse)
  154. #DECLARE(%MaximumSheetHeight)
  155. #DECLARE(%MaximumSheetWidth)
  156. #DECLARE(%MinimumSheetWidth)
  157. #DECLARE(%MinimumTextHeight)
  158. #DECLARE(%MinimumBrowseHeight)
  159. #DECLARE(%MaximumBrowseItemWidth)
  160. #DECLARE(%InitialSheetYOffset)
  161. #DECLARE(%DefaultXOffset)
  162. #DECLARE(%DefaultYOffset)
  163. #DECLARE(%DefaultReportXOffset)
  164. #DECLARE(%DefaultReportInitialYOffset)
  165. #DECLARE(%DefaultReportYOffset)
  166. #DECLARE(%DefaultReportTextYOffset)
  167. #DECLARE(%DefaultButtonWidth)
  168. #DECLARE(%DefaultButtonHeight)
  169. #DECLARE(%DefaultRadioHeight)
  170. #DECLARE(%DefaultRadioWidth)
  171. #DECLARE(%DefaultCheckHeight)
  172. #DECLARE(%DefaultCheckBoxXOffset)
  173. #DECLARE(%DefaultPromptWidth)
  174. #DECLARE(%DefaultPromptHeight)
  175. #DECLARE(%DefaultControlHeight)
  176. #DECLARE(%DefaultControlWidth)
  177. #DECLARE(%MinimumControlWidth)
  178. #DECLARE(%DefaultPromptYOffset)
  179. #DECLARE(%DefaultListItemHeight)
  180. #DECLARE(%MaximumRelationCols)
  181. #DECLARE(%MinimumTabLength)
  182. #DECLARE(%TabTextOffset)
  183. #DECLARE(%TabLineVerticalOffset)
  184. #DECLARE(%TabDefaultVerticalOffset)
  185. #DECLARE(%DefaultSpinWidthOffset)
  186. #DECLARE(%MaximumCheckColumns)
  187. #DECLARE(%CheckColumnWidth)
  188. #DECLARE(%MaximumBrowseFields)
  189. #DECLARE(%RadioInitialYOffset)
  190. #DECLARE(%DefaultRadioXOffset)
  191. #DECLARE(%DefaultRadioYOffset)
  192. #DECLARE(%TopControlOffset)
  193. #DECLARE(%MiddleControlOffset)
  194. #DECLARE(%BottomControlOffset)
  195. #DECLARE(%TextControlOffset)
  196. #DECLARE(%DefaultSelectControlText)
  197. #DECLARE(%DefaultInsertControlText)
  198. #DECLARE(%DefaultChangeControlText)
  199. #DECLARE(%DefaultDeleteControlText)
  200. #DECLARE(%DefaultCancelControlText)
  201. #DECLARE(%DefaultCloseControlText)
  202. #DECLARE(%DefaultHelpControlText)
  203. #DECLARE(%DefaultOKControlText)
  204. #!--------------------------------------------------------------------------
  205. #GROUP(%BeginGeneration)
  206. #SET(%TXAFile,%Application & '.txa')
  207. #CREATE(%TXAFile)
  208. #!--------------------------------------------------------------------------
  209. #GROUP(%GenerateProcedures)
  210. #SET(%ProcCount,0)
  211. #MESSAGE('Wizard Code Generation Progress',0)
  212. #MESSAGE('Beginning Generation',1)
  213. #INSERT(%BeginGeneration)
  214. #IF(%GenerateProgramSection)
  215. [APPLICATION]
  216. PROCEDURE Main
  217. DICTIONARY '%Application.DCT'
  218. #ENDIF
  219. #FOR(%ProcedureList)
  220.   #SET(%ProcCount,%ProcCount + 1)
  221.   #MESSAGE('Generating Procedure ' & %ProcCount & ':  ' & %ProcedureList,1)
  222.   #MESSAGE('Generating Symbols',2)
  223.   #INSERT(%ResetGlobalSymbols)
  224.   #IF(%QuickProcedurePrimary)
  225.     #FIX(%FileList,%QuickProcedurePrimary)
  226.     #IF(NOT %FileList)
  227.       #ADD(%FileList,%QuickProcedurePrimary)
  228.       #INSERT(%AccumulateFieldList,%FileList)
  229.     #ENDIF
  230.   #ENDIF
  231.   #SET(%CurrentProcedure,%ProcedureList)
  232.   #MESSAGE('Constructing Procedure',2)
  233.   #CASE(%QuickProcedureType)
  234.   #OF('Clarion Browse')
  235.     #INSERT(%ConstructQuickBrowse)
  236.   #OF('Clarion Form')
  237.     #INSERT(%ConstructQuickForm)
  238.   #OF('Clarion Frame')
  239.     #INSERT(%ConstructQuickApp)
  240.   #OF('Clarion Report')
  241.   #ELSE
  242.     #CYCLE
  243.   #ENDCASE
  244.   #FIX(%FileList,%QuickProcedurePrimary)
  245. #INSERT(%GenerateProcedure)
  246. #ENDFOR
  247. #PURGE(%RelationList)
  248. #PURGE(%BrowseFiles)
  249. #PURGE(%ChildBrowseFiles)
  250. #PURGE(%SelectFiles)
  251. #PURGE(%UpdateFiles)
  252. #PURGE(%ProcedureList)
  253. #MESSAGE('Importing...',1)
  254. #INSERT(%CloseAndImport)
  255. #!--------------------------------------------------------------------------
  256. #GROUP(%ResetGlobalSymbols)
  257. #INSERT(%SetGlobalDefaults)
  258. #SET(%HighestUserLevel,9999)
  259. #SET(%Menubar,10000)
  260. #SET(%LayerWindow,10001)
  261. #SET(%LayerPostSheet,10002)
  262. #SET(%LayerFirstChildBrowse,9950)
  263. #SET(%TopControlOffset,0)
  264. #SET(%MiddleControlOffset,10000)
  265. #SET(%BottomControlOffset,20000)
  266. #SET(%TextControlOffset,30000)
  267. #FREE(%QuickTemplateInstance)
  268. #FREE(%ProcedureDataItemID)
  269. #FREE(%WindowLayerID)
  270. #FREE(%RelationList)
  271. #!--------------------------------------------------------------------------
  272. #GROUP(%GenerateProcedure)
  273. #MESSAGE('',3)
  274. #MESSAGE('Generating Procedure Header',2)
  275. #INSERT(%GenerateProcedureHeader)
  276. #MESSAGE('Generating File List',2)
  277. #INSERT(%GenerateFileList)
  278. #MESSAGE('Generating Procedure Prompts',2)
  279. #INSERT(%GenerateProcedurePrompts)
  280. #MESSAGE('Generating Field Prompts',2)
  281. #INSERT(%GenerateFieldPrompts)
  282. #MESSAGE('Generating Extensions',2)
  283. #INSERT(%GenerateAdditionPrompts)
  284. #IF(%QuickProcedureWindow)
  285. #MESSAGE('Generating Window',2)
  286. #INSERT(%GenerateWindow)
  287. #ENDIF
  288. #IF(%QuickProcedureReport)
  289. #MESSAGE('Generating Report',2)
  290. #INSERT(%GenerateReport)
  291. #ENDIF
  292. #MESSAGE('',2)
  293. #!--------------------------------------------------------------------------
  294. #GROUP(%CloseAndImport)
  295. #CLOSE(%TXAFile)
  296. #!CLOSE(%Comments)
  297. #IMPORT(%TXAFile),REPLACE
  298. #!--------------------------------------------------------------------------
  299. #GROUP(%GenerateFileList)
  300. [FILES]
  301. #IF(%QuickProcedureWindow)
  302.   #FOR(%QuickTemplateInstance),WHERE(%QuickTemplatePrimary)
  303. [PRIMARY]
  304. %QuickTemplatePrimary
  305. [INSTANCE]
  306. %QuickTemplateInstance
  307.     #IF(%QuickTemplatePrimaryKey)
  308. [KEY]
  309. %QuickTemplatePrimaryKey
  310.     #ENDIF
  311.     #IF(ITEMS(%QuickTemplateSecondaryFiles))
  312. [SECONDARY]
  313.       #FOR(%QuickTemplateSecondaryFiles)
  314. %QuickTemplateSecondaryFiles
  315.       #ENDFOR
  316.     #ENDIF
  317.   #ENDFOR
  318. #ELSIF(%QuickProcedureReport)
  319. [PRIMARY]
  320. %QuickProcedurePrimary
  321. [INSTANCE]
  322. 0
  323.   #IF(%QuickProcedurePrimaryKey)
  324. [KEY]
  325. %QuickProcedurePrimaryKey
  326.   #ENDIF
  327. #ENDIF
  328. #IF(ITEMS(%QuickOtherFiles))
  329. [OTHERS]
  330.   #FOR(%QuickOtherFiles)
  331. %QuickOtherFiles
  332.   #ENDFOR
  333. #ENDIF
  334. #!--------------------------------------------------------------------------
  335. #GROUP(%GenerateWindow)
  336. [WINDOW]
  337. #IF(%QuickProcedureType = 'Clarion Frame')
  338. AppFrame APPLICATION('Application'),AT(,,400,220),STATUS(-1,80,120,45),SYSTEM,MAX,RESIZE,FONT('MS Sans Serif',8,,)
  339. #ELSE
  340. QuickWindow WINDOW('%'QuickProcedureDescription'),AT(,,%WindowWidth,%WindowHeight),FONT('MS Sans Serif',8,,),IMM,SYSTEM,GRAY,MDI,HLP('%ProcedureList')
  341. #ENDIF
  342. #FIX(%WindowLayerID,%MenuBar)
  343. #SUSPEND
  344.   #?MENUBAR
  345.     #FOR(%WindowControlID)
  346.        %WindowControlStatement
  347.     #ENDFOR
  348.   #?END
  349. #RESUME
  350. #FIX(%WindowLayerID,%LayerPreSheet)
  351.   #INSERT(%ConstructWindowLayer)
  352. #SUSPEND
  353.   #?SHEET,AT(%DefaultXOffset,%DefaultYOffset,%WorksheetWidth,%WorksheetHeight),USE(?CurrentTab),#ORIG(CurrentTab)
  354. #FOR(%WindowLayerID),WHERE(%WindowLayerID =< %HighestUserLevel AND %WindowLayerID > %LayerPreSheet)
  355.     TAB('%WindowLayerTabText')
  356.       #INSERT(%ConstructWindowLayer)
  357.     END
  358. #ENDFOR
  359.   #?END
  360. #RESUME
  361. #FIX(%WindowLayerID,%LayerPostSheet)
  362. #INSERT(%ConstructWindowLayer)
  363. #FIX(%WindowLayerID,%LayerWindow)
  364. #INSERT(%ConstructWindowLayer)
  365.  END
  366. #!--------------------------------------------------------------------------
  367. #GROUP(%ConstructWindowLayer)
  368. #FOR(%WindowControlID)
  369.   #FIND(%QuickTemplateControl,%WindowControl)
  370.   #IF(%QuickTemplateControl)
  371.  #INSERT(%PopulateControlTemplate)
  372.   #ELSE
  373.     #FIND(%FieldList,%WindowControl)
  374.     #IF(%FieldList)
  375.       #IF(%WindowLayerID = %LayerWindow)
  376.  #INSERT(%PopulateDictionaryControl,%WindowControlXOffset,%WindowControlYOffset,%WindowWidth,%WindowHeight)
  377.       #ELSE
  378.  #INSERT(%PopulateDictionaryControl,%WindowControlXOffset,%WindowControlYOffset,%WorksheetWidth,%WorksheetHeight)
  379.       #ENDIF
  380.     #ELSE
  381.  %WindowControlStatement,USE(%WindowControl),AT(%WindowControlXOffset,%WindowControlYOffset,%WindowControlWidth,%WindowControlHeight)
  382.     #ENDIF
  383.   #ENDIF
  384. #ENDFOR
  385. #!--------------------------------------------------------------------------
  386. #GROUP(%GenerateReport),AUTO
  387. #DECLARE(%KeyFieldList),MULTI
  388. #FIX(%FileList,%QuickProcedurePrimary)
  389. #FIX(%File,%QuickProcedurePrimary)
  390. #FIX(%Key,%QuickProcedurePrimaryKey)
  391. [REPORT]
  392. report REPORT,AT(1000,2000,6000,7000),PRE(RPT),FONT('Arial',10,,),THOUS
  393.        HEADER,AT(1000,1000,6000,1000)
  394.        END
  395. detail DETAIL
  396. #SET(%CurrentY,%DefaultReportInitialYOffset)
  397. #FOR(%KeyField)
  398.   #FOR(%FieldListID),WHERE(%FieldList = %KeyField)
  399.     #FOR(%FieldListReportControl)
  400.       #SET(%ValueConstruct,%FieldListReportControl)
  401.       #SET(%ValueConstruct,REPLACE(%ValueConstruct,'MSG',''))
  402.       %ValueConstruct,AT(%DefaultReportXOffset,%CurrentY,,)
  403.     #ENDFOR
  404.     #ADD(%KeyFieldList,%KeyField)
  405.     #SET(%CurrentY,%CurrentY + %DefaultReportYOffset)
  406.   #ENDFOR
  407. #ENDFOR
  408. #FIX(%File,%QuickProcedurePrimary)
  409. #FOR(%FieldListID),WHERE(%FieldListType <> 'MEMO')
  410.   #FIX(%KeyFieldList,%FieldList)
  411.   #IF(NOT %KeyFieldList)
  412.     #FOR(%FieldListReportControl)
  413.       #SET(%ValueConstruct,%FieldListReportControl)
  414.       #SET(%ValueConstruct,REPLACE(%ValueConstruct,'MSG',''))
  415.       %ValueConstruct,AT(%DefaultReportXOffset,%CurrentY,,)
  416.     #ENDFOR
  417.     #SET(%CurrentY,%CurrentY + %DefaultReportYOffset)
  418.   #ENDIF
  419. #ENDFOR
  420.        END
  421. #FOR(%FieldListID),WHERE(%FieldListType = 'MEMO')
  422.        #SET(%ValueConstruct,%DefaultReportTextYOffset * 2)
  423. %FieldList:Detail DETAIL,AT(,,6000,%ValueConstruct),USE(?%FieldList:Detail)
  424.        #SET(%ValueConstruct,6000 - %DefaultReportXOffset * 2)
  425.          TEXT,AT(%DefaultReportTextYOffset,%DefaultReportTextYOffset,%ValueConstruct,4000)
  426.        END
  427. #ENDFOR
  428.        FOOTER,AT(1000,9000,6000,1000)
  429.        END
  430.      END
  431. #!-------------------------------------------------------
  432. #GROUP(%AddPrimaryBrowse,%NewProcedureFile)
  433. #DECLARE(%NewProcedureName)
  434. #FIND(%File,%NewProcedureFile)
  435. #SET(%NewProcedureName,'Browse' & %File)
  436. #IF(NOT %ReplaceExistingProcedures)
  437.   #FIX(%Procedure,%NewProcedureName)
  438. #ENDIF
  439. #IF(NOT %Procedure)
  440.   #FIX(%ProcedureList,%NewProcedureName)
  441.   #IF(NOT %ProcedureList)
  442.     #ADD(%ProcedureList,%NewProcedureName)
  443.     #SET(%QuickProcedureType,'Clarion Browse')
  444.     #SET(%QuickProcedurePrimary,%File)
  445.     #SET(%QuickProcedureDescription,'Browse the ' & %File & ' File')
  446.     #SET(%QuickProcedureDefault,'Primary Browse')
  447.     #SET(%QuickProcedureWindow,%True)
  448.   #ENDIF
  449. #ENDIF
  450. #!-------------------------------------------------------
  451. #GROUP(%AddSecondaryBrowse,%NewProcedureKey)
  452. #DECLARE(%NewProcedureName)
  453. #FIND(%Key,%NewProcedureKey)
  454. #SET(%NewProcedureName,'Browse' & %Key)
  455. #IF(NOT %ReplaceExistingProcedures)
  456.   #FIX(%Procedure,%NewProcedureName)
  457. #ENDIF
  458. #IF(NOT %Procedure)
  459.   #FIX(%ProcedureList,%NewProcedureName)
  460.   #IF(NOT %ProcedureList)
  461.     #ADD(%ProcedureList,%NewProcedureName)
  462.     #SET(%QuickProcedureType,'Clarion Browse')
  463.     #SET(%QuickProcedurePrimary,%File)
  464.     #SET(%QuickProcedurePrimaryKey,%Key)
  465.     #SET(%QuickProcedureDescription,'Browse the ' & %File & ' File by ' & %Key)
  466.     #SET(%QuickProcedureDefault,'Secondary Browse')
  467.     #SET(%QuickProcedureWindow,%True)
  468.   #ENDIF
  469. #ENDIF
  470. #!-------------------------------------------------------
  471. #GROUP(%AddSelectBrowse,%NewProcedureFile)
  472. #DECLARE(%NewProcedureName)
  473. #FIX(%File,%NewProcedureFile)
  474. #SET(%NewProcedureName,'Select' & %File)
  475. #IF(NOT %ReplaceExistingProcedures)
  476.   #FIX(%Procedure,%NewProcedureName)
  477. #ENDIF
  478. #IF(NOT %Procedure)
  479.   #FIX(%ProcedureList,%NewProcedureName)
  480.   #IF(NOT %ProcedureList)
  481.     #ADD(%ProcedureList,%NewProcedureName)
  482.     #SET(%QuickProcedureType,'Clarion Browse')
  483.     #SET(%QuickProcedurePrimary,%File)
  484.     #SET(%QuickProcedureDescription,'Select a ' & %File & ' Record')
  485.     #SET(%QuickProcedureDefault,'Select Browse')
  486.     #SET(%QuickProcedureWindow,%True)
  487.   #ENDIF
  488. #ENDIF
  489. #!-------------------------------------------------------
  490. #GROUP(%AddUpdateProcedure,%NewProcedureFile,%OverrideProcedureName)
  491. #DECLARE(%NewProcedureName)
  492. #IF(NOT %OverrideProcedureName)
  493.   #SET(%NewProcedureName,'Update' & %NewProcedureFile)
  494. #ELSE
  495.   #SET(%NewProcedureName,%OverrideProcedureName)
  496. #ENDIF
  497. #IF(NOT %ReplaceExistingProcedures)
  498.   #FIX(%Procedure,%NewProcedureName)
  499. #ENDIF
  500. #IF(NOT %Procedure)
  501.   #FIX(%ProcedureList,%NewProcedureName)
  502.   #IF(NOT %ProcedureList)
  503.     #ADD(%ProcedureList,%NewProcedureName)
  504.     #SET(%QuickProcedureType,'Clarion Form')
  505.     #SET(%QuickProcedurePrimary,%NewProcedureFile)
  506.     #SET(%QuickProcedureDescription,'Update the ' & %NewProcedureFile & ' File')
  507.     #SET(%QuickProcedureDefault,'Update Form')
  508.     #SET(%QuickProcedureWindow,%True)
  509.   #ENDIF
  510. #ENDIF
  511. #!-------------------------------------------------------
  512. #GROUP(%AddReportProcedure,%NewProcedurePrimary)
  513. #DECLARE(%NewProcedureName)
  514. #FIX(%File,%NewProcedurePrimary)
  515. #IF(%File)
  516.   #SET(%NewProcedureName,'Print' & %File)
  517. #ELSE
  518.   #FIND(%Key,%NewProcedurePrimary)
  519.   #SET(%NewProcedureName,'Print' & %Key)
  520. #ENDIF
  521. #IF(NOT %ReplaceExistingProcedures)
  522.   #FIX(%Procedure,%NewProcedureName)
  523. #ENDIF
  524. #IF(NOT %Procedure)
  525.   #FIX(%ProcedureList,%NewProcedureName)
  526.   #IF(NOT %ProcedureList)
  527.     #ADD(%ProcedureList,%NewProcedureName)
  528.     #SET(%QuickProcedureType,'Clarion Report')
  529.     #SET(%QuickProcedurePrimary,%File)
  530.     #SET(%QuickProcedurePrimaryKey,%Key)
  531.     #IF(%Key)
  532.       #SET(%QuickProcedureDescription,'Print the ' & %File & ' File by ' & %Key)
  533.     #ELSE
  534.       #SET(%QuickProcedureDescription,'Print the ' & %File & ' File')
  535.     #ENDIF
  536.     #SET(%QuickProcedureDefault,'Report')
  537.     #SET(%QuickProcedureReport,%True)
  538.   #ENDIF
  539. #ENDIF
  540. #!--------------------------------------------------------------------------
  541. #INCLUDE('WProc.TPW')
  542. #INCLUDE('WControl.TPW')
  543. #INCLUDE('WField.TPW')
  544. #INCLUDE('WBrowse.TPW')
  545. #INCLUDE('WForm.TPW')
  546. #INCLUDE('WFrame.TPW')
  547. #INCLUDE('WReport.TPW')
  548. #INCLUDE('WStart.TPW')
  549. #INCLUDE('WApp.TPW')
  550. #INCLUDE('WDefault.TPW')